// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router'
import VueResource from 'vue-resource'

import Index from './components/Index'
import Details from './components/Details'
import My from './components/My'


Vue.use(VueRouter);
Vue.use(VueResource);

const router = new VueRouter({
  mode:'history',
  base:__dirname,
  routes:[
    {path:'/',component:Index},
    {path:'/details',component:Details},
    {path:'/my',component:My}
  ]


});

Vue.config.productionTip = false;

//webpack编译css样式文件
require("../static/css/common.css");
require("../static/css/normalize.css");


/* eslint-disable no-new */
new Vue({
  router,
  el: '#app',
  template: '<App/>',
  components: { App }
});






